package programmierung.aufgabe1;

public class Pair<L, R> {
	private L left;
	private R right;
	
	public Pair(L left, R right) {
		this.left = left;
		this.right = right;
	}
	
	public boolean equals(Pair<L, R> p) {
		if(left.equals(p.left) && right.equals(p.right)) {
			return true;
		} else {
			return false;
		}
	}
	
	public L getLeft() {
		return left;
	}

	public R getRight() {
		return right;
	}
}
